package com.zyz.I_多线程.匿名内部类;

/**
 * @author: vick
 * @Date: 2025/3/21
 * @Description:
 * @version: 1.0
 */
public class RunnableTest {
    public static void main(String[] args) {
       new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    System.out.println(Thread.currentThread().getName() + "正在运行" + i);
                }
            }
        }, "子线程1").start();

    }
}
